package cn.tedu.mall.order.mappers;

import cn.tedu.mall.pojo.order.dto.OrderListTimeDTO;
import cn.tedu.mall.pojo.order.model.OmsOrder;
import cn.tedu.mall.pojo.order.vo.OrderListVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {

    boolean selectExistBySn(@Param("sn") String sn);

    void insertOrder(OmsOrder omsOrder);

    OmsOrder selectOrderBySn(@Param("sn") String sn);

    void shutDownOrderBySn(@Param("sn") String sn);

    List<OrderListVO> selectOrdersBetweenTimes(OrderListTimeDTO orderListTimeDTO);
}
